#include <asm/asm.h>
#include <asm/regdef.h>
#include <cpu.h>
#include <asm/context.h>
#include <inst_ex_test.h>

####LEAF(n67_reserved_instruction_ex_test)
    .globl n67_reserved_instruction_ex_test
n67_reserved_instruction_ex_test:
    .set noreorder
    li  a0, 0x43
###test inst
    TEST_RESERVED_INSTRUCTION_EX(0x45df00e0)
    TEST_RESERVED_INSTRUCTION_EX(0x7a22db9c)
    TEST_RESERVED_INSTRUCTION_EX(0x6f76e210)
    TEST_RESERVED_INSTRUCTION_EX(0x5a8d78ce)
    TEST_RESERVED_INSTRUCTION_EX(0x7bd1ac60)
    TEST_RESERVED_INSTRUCTION_EX(0x7e6265cc)
    TEST_RESERVED_INSTRUCTION_EX(0x9fc55510)
    TEST_RESERVED_INSTRUCTION_EX(0xb70e3e49)
    TEST_RESERVED_INSTRUCTION_EX(0xdd65f0f4)
    TEST_RESERVED_INSTRUCTION_EX(0x7d468520)
    TEST_RESERVED_INSTRUCTION_EX(0xd33bd844)
    TEST_RESERVED_INSTRUCTION_EX(0x71ac59bc)
    TEST_RESERVED_INSTRUCTION_EX(0xd193fd44)
    TEST_RESERVED_INSTRUCTION_EX(0xec6f06c8)
    TEST_RESERVED_INSTRUCTION_EX(0x75891917)
    TEST_RESERVED_INSTRUCTION_EX(0x77e0d000)
    TEST_RESERVED_INSTRUCTION_EX(0x7dd39a40)
    TEST_RESERVED_INSTRUCTION_EX(0x63bc98f0)
    TEST_RESERVED_INSTRUCTION_EX(0x7c619a60)
    TEST_RESERVED_INSTRUCTION_EX(0x59556f14)
    TEST_RESERVED_INSTRUCTION_EX(0xd3568dfa)
    TEST_RESERVED_INSTRUCTION_EX(0x1ec30450)
    TEST_RESERVED_INSTRUCTION_EX(0x72f84f90)
    TEST_RESERVED_INSTRUCTION_EX(0xf01cf3f0)
    TEST_RESERVED_INSTRUCTION_EX(0x18abd27a)
    TEST_RESERVED_INSTRUCTION_EX(0x45bfb278)
    TEST_RESERVED_INSTRUCTION_EX(0xef52e63e)
    TEST_RESERVED_INSTRUCTION_EX(0xfeb3780c)
    TEST_RESERVED_INSTRUCTION_EX(0x1b104e68)
    TEST_RESERVED_INSTRUCTION_EX(0x4145f9e8)
    TEST_RESERVED_INSTRUCTION_EX(0xf010e50c)
    TEST_RESERVED_INSTRUCTION_EX(0x58b2de08)
    TEST_RESERVED_INSTRUCTION_EX(0x5d51d31e)
    TEST_RESERVED_INSTRUCTION_EX(0x9e1d55c0)
    TEST_RESERVED_INSTRUCTION_EX(0xd08541a0)
    TEST_RESERVED_INSTRUCTION_EX(0x3cf5f5d0)
    TEST_RESERVED_INSTRUCTION_EX(0x9ef414c4)
    TEST_RESERVED_INSTRUCTION_EX(0xef3de4cc)
    TEST_RESERVED_INSTRUCTION_EX(0x65fe27d0)
    TEST_RESERVED_INSTRUCTION_EX(0xef4127c2)
    TEST_RESERVED_INSTRUCTION_EX(0xee3b4c40)
    TEST_RESERVED_INSTRUCTION_EX(0x9f43b7b9)
    TEST_RESERVED_INSTRUCTION_EX(0xde17b818)
    TEST_RESERVED_INSTRUCTION_EX(0xfe6b0ba9)
    TEST_RESERVED_INSTRUCTION_EX(0xdff56a98)
    TEST_RESERVED_INSTRUCTION_EX(0x5cd0cb40)
    TEST_RESERVED_INSTRUCTION_EX(0x65f9321c)
    TEST_RESERVED_INSTRUCTION_EX(0x48bcd91a)
    TEST_RESERVED_INSTRUCTION_EX(0x4e0b39e6)
    TEST_RESERVED_INSTRUCTION_EX(0x4862f047)
    TEST_RESERVED_INSTRUCTION_EX(0x6925a008)
    TEST_RESERVED_INSTRUCTION_EX(0x9c1f2675)
    TEST_RESERVED_INSTRUCTION_EX(0x47e3ca90)
    TEST_RESERVED_INSTRUCTION_EX(0x7454b800)
    TEST_RESERVED_INSTRUCTION_EX(0xefcf40ae)
    TEST_RESERVED_INSTRUCTION_EX(0x68e12b46)
    TEST_RESERVED_INSTRUCTION_EX(0x61282599)
    TEST_RESERVED_INSTRUCTION_EX(0x1b8ceba4)
    TEST_RESERVED_INSTRUCTION_EX(0x7a4dea21)
    TEST_RESERVED_INSTRUCTION_EX(0x4562167a)
    TEST_RESERVED_INSTRUCTION_EX(0x1caaa076)
    TEST_RESERVED_INSTRUCTION_EX(0x4837d64e)
    TEST_RESERVED_INSTRUCTION_EX(0xb74d062c)
    TEST_RESERVED_INSTRUCTION_EX(0x75c69163)
    TEST_RESERVED_INSTRUCTION_EX(0x787738ae)
    TEST_RESERVED_INSTRUCTION_EX(0x6bb00de2)
    TEST_RESERVED_INSTRUCTION_EX(0x5f14ecbe)
    TEST_RESERVED_INSTRUCTION_EX(0x4d477986)
    TEST_RESERVED_INSTRUCTION_EX(0x7d135b30)
    TEST_RESERVED_INSTRUCTION_EX(0x7f9f8424)
    TEST_RESERVED_INSTRUCTION_EX(0x3eae9730)
    TEST_RESERVED_INSTRUCTION_EX(0x9dd6fa9c)
    TEST_RESERVED_INSTRUCTION_EX(0xecc6f966)
    TEST_RESERVED_INSTRUCTION_EX(0x768e0cd0)
    TEST_RESERVED_INSTRUCTION_EX(0x48282efc)
    TEST_RESERVED_INSTRUCTION_EX(0x1c1bca40)
    TEST_RESERVED_INSTRUCTION_EX(0xfed167b2)
    TEST_RESERVED_INSTRUCTION_EX(0xb12d367c)
    TEST_RESERVED_INSTRUCTION_EX(0xf1140e40)
    TEST_RESERVED_INSTRUCTION_EX(0xd282d674)
    TEST_RESERVED_INSTRUCTION_EX(0x5f386844)
    TEST_RESERVED_INSTRUCTION_EX(0x9e3c56aa)
    TEST_RESERVED_INSTRUCTION_EX(0xec1ba960)

###detect exception
###score ++
    addiu s3, s3, 1
###output a0|s3
inst_error:  
    sw s3, 0($23)
    sw a0, 0(s1)
    jr ra
    nop
####END(n67_reserved_instruction_ex_test)
